import request from '@/utils/request'

// 增加用户
export function addUser(params) {
    return request({
        url:'/api/login',
        method:'post',
        data:params
    })
}
// postAnswer提交答案
export function postAnswer(params,test,round) {
    return request({
        url:'/api/postAnswer',
        method:'post',
        data:{"data":params,"test":test,"round":round}
    })
}

// check answerd
export function checkAnswer(test,round) {
    return request({
        url:'/api/checkAnswer',
        method:'post',
        data:{"test":test,"round":round}
    })
}
